home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
screamin_upstreamin.swf
/
scripts
/
DefineSprite_184
/
frame_1
/
PlaceObject3_183_75
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2012-01-07
|
766b
|
28 lines
onClipEvent(enterFrame){
if(_root.level > 3)
{
if(_Y > 275)
{
this.gotoAndstop(1);
}
if(_Y >= occurrence)
{
var occurrence = Math.round(Math.random() * frequency) + 300;
var xPos = -110 + Math.round(Math.random() * xPosVara);
_Y = startPos;
_X = xPos;
_root.smallCarSpeed2 = 10;
hitObject = "on";
}
else if(_Y <= occurrence * -1)
{
var occurrence = Math.round(Math.random() * frequency) + 300;
var xPos = -110 + Math.round(Math.random() * xPosVara);
_Y = startPos * -1;
_X = xPos;
hitObject = "on";
}
_Y = _Y + (- _root.smallCarSpeed2) + _root.busSpeed / 2;
}
}